package cglgu.trellis.chado.das2.wasp.db;

/*
 * $Id: WaspMysqlDbUtil.java 191 2011-03-27 00:38:22Z sundaram.georgetown@gmail.com $
 * $Author: sundaram.georgetown@gmail.com $
 * $Date: 2011-03-27 00:38:22 +0000 (Sun, 27 Mar 2011) $
 * $Rev: 191 $
 * $HeadURL: http://genomancer.googlecode.com/svn/branches/gu-dev-branch/tengcha/src/cglgu/trellis/chado/das2/wasp/db/WaspMysqlDbUtil.java $
 */

import cglgu.trellis.chado.das2.wasp.db.WaspDbUtil;

/* Encapsulates logic for:

   organism: wasp (Nasonia vitripennis)
   schema: chado
   database vendor: mysql

   Implements Singleton pattern.
*/

public class WaspMysqlDbUtil extends WaspDbUtil {

    private String dbUriRoot = "jdbc:/mysql://";
    private static WaspMysqlDbUtil instance = null;

    protected WaspMysqlDbUtil(String username, String password, String database, String host, boolean useMultiQry){
	super(username, password, database, host, useMultiQry);
    }

    public static WaspMysqlDbUtil getInstance(String username, String password, String database, String host, boolean useMultiQry){

	if (instance == null){
	    instance = new WaspMysqlDbUtil(username, password, database, host, useMultiQry);
	}
	return instance;
    }

    public String getDbUriRoot(){
	return dbUriRoot;
    }
}